package com.int_tech.utils;

import com.int_tech.control.entity.Rate;
import com.int_tech.messionLog.entity.MessionLog;

/**
 * Created by liubch on 2017/10/8.
 */
public class RateUtil {

    public static Rate rateHelp(String rateString){
//        String[] s = rateString.split("\\$\\$");
        String[] s = rateString.split(",");
        Rate rate = new Rate();

        rate.setNumberAndName(s[0]);
        rate.setTimeAndt(s[1]);
        rate.setGTime(s[2]);
        rate.setCarNumber(s[3]);
        rate.setTaskY(s[4]);
        rate.setTaskX(s[5]);
        rate.setMaxValue(s[6]);
        rate.setMinValue(s[7]);
        rate.setColor(s[8]);


        rate.setDateTime(s[10]);
        rate.setLat(s[11]);
        rate.setLng(s[12]);
        rate.setAddress(s[13]);
        rate.setResult(s[14].split(",")[0]);
        rate.setResultValue(s[14].split(",")[1]);
        rate.setMeasureData(s[14]);

        return rate;

    }
}
